<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['product']) && ($_SESSION['product'] <= 0))) {
	Vfriend_Function::redirect(HOST_BACKEND);
}
$intPage					= $objRequest->getParam('page',1);
$intParentId				= $objRequest->getParam('parentid',0);
$strName					= $objRequest->getParam('name','');
$intLimit					= ADMIN_LIMIT;
$intOff						= ($intPage-1) * $intLimit;
$intTotal					= 0;
$objCategory				= new Category(); 
$arrResult					= $objCategory->getAll($AppUI->type, $intParentId, $intOff, $intLimit, $intTotal);
$this->view->arrResult		= $arrResult;
$this->view->intTotal		= $intTotal;
$this->view->intOffset		= $intOff;
$this->view->intLimit		= $intLimit;
$this->view->strName		= $strName;
$this->view->intParentId	= $intParentId;
?>